package com.base.service.impl;

import com.base.mapper.voipmapper.ReplacementHistoryFallMapper;
import com.base.po.replacement.ReplacementHistoryFall;
import com.base.po.replacement.ReplacementHistoryFallExample;
import com.base.service.ReplacementHistoryFallService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("replacementHistoryFallService")
public class ReplacementHistoryFallServiceImpl implements ReplacementHistoryFallService {
	
	@Autowired
	private ReplacementHistoryFallMapper replacementHistoryFallMapper;


	@Override
	public int countByExample(ReplacementHistoryFallExample example) {
		return replacementHistoryFallMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ReplacementHistoryFallExample example) {
		return replacementHistoryFallMapper.deleteByExample(example);
	}

	@Override
	public int insert(ReplacementHistoryFall record) {
		return replacementHistoryFallMapper.insert(record);
	}

	@Override
	public int insertSelective(ReplacementHistoryFall record) {
		return replacementHistoryFallMapper.insertSelective(record);
	}

	@Override
	public List<ReplacementHistoryFall> selectByExample(ReplacementHistoryFallExample example) {
		return replacementHistoryFallMapper.selectByExample(example);
	}

	@Override
	public List<ReplacementHistoryFall> selectByUserID(Page page, String userid) {
		return replacementHistoryFallMapper.selectByUserID(page, userid);
	}

//	@Override
//	public int updateByExampleSelective(ReplacementHistoryFall record, ReplacementHistoryFallExample example) {
//		return replacementHistoryFallMapper.updateByExampleSelective(record, example);
//	}
//
//	@Override
//	public int updateByExample(ReplacementHistoryFall record, ReplacementHistoryFallExample example) {
//		return replacementHistoryFallMapper.updateByExample(record, example);
//	}

	@Override
	public int countByUserID(String userid) {
		return replacementHistoryFallMapper.countByUserID(userid);
	}
}
